﻿<%@ Page Title="Title" Language="C#" Inherits="System.Web.Mvc.ViewPage<ContactUsInput>" MasterPageFile="~/Views/Shared/Site.Master" %>
<asp:Content runat="server" ID="Title" ContentPlaceHolderID="TitleContent"></asp:Content>
<asp:Content runat="server" ID="Main" ContentPlaceHolderID="MainContent">

        <h1>
           Contact Us</h1>

   <form method="post" action="<%=Url.Action("index") %>">
   <%=Html.AntiForgeryToken("salty") %>
    <div class="inputform">
        <div class="efield">
            <div class="elabel">
                <label for="Email">
                    Email:
                </label>
            </div>
            <div class="einput">
                <%=Html.TextBox("Email") %>
                <%=Html.ValidationMessage("Email") %>
            </div>
        </div>
         <div class="efield">
            <div class="elabel">
                <label for="Subject">
                    Subject:
                </label>
            </div>
            <div class="einput">
                <%=Html.TextBox("Subject") %>
                <%=Html.ValidationMessage("Subject") %>
            </div>
        </div> 
        <div class="efield">
            <div class="elabel">
                <label for="Message">
                    Message:
                </label>
            </div>
            <div class="einput">
                <%=Html.TextArea("Message",new { style="width:500px;height:150px;"}) %>
                <%=Html.ValidationMessage("Message")%>
            </div>
        </div>
        <div class="efield">
            <div class="elabel">
                <label for="recaptcha">
                    Security check:</label>
                
            </div>
            <div class="einput">
                <div>
                    <%= Html.GenerateCaptcha() %><%=Html.ValidationMessage("captcha") %>
                </div>
            </div>
        </div>
        <div class="esubmit">
            <input type="submit" value="Send Message"/>
        </div>
    </div>
    </form>
</asp:Content>
